package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Targetaim implements Serializable {
    private Integer taid;

    private String cid;

    private Date enddate;

    private Float weighttarget;

    private Integer tastate;

    private static final long serialVersionUID = 1L;

    public Integer getTaid() {
        return taid;
    }

    public void setTaid(Integer taid) {
        this.taid = taid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    public Float getWeighttarget() {
        return weighttarget;
    }

    public void setWeighttarget(Float weighttarget) {
        this.weighttarget = weighttarget;
    }

    public Integer getTastate() {
        return tastate;
    }

    public void setTastate(Integer tastate) {
        this.tastate = tastate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Targetaim other = (Targetaim) that;
        return (this.getTaid() == null ? other.getTaid() == null : this.getTaid().equals(other.getTaid()))
            && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
            && (this.getEnddate() == null ? other.getEnddate() == null : this.getEnddate().equals(other.getEnddate()))
            && (this.getWeighttarget() == null ? other.getWeighttarget() == null : this.getWeighttarget().equals(other.getWeighttarget()))
            && (this.getTastate() == null ? other.getTastate() == null : this.getTastate().equals(other.getTastate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTaid() == null) ? 0 : getTaid().hashCode());
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getEnddate() == null) ? 0 : getEnddate().hashCode());
        result = prime * result + ((getWeighttarget() == null) ? 0 : getWeighttarget().hashCode());
        result = prime * result + ((getTastate() == null) ? 0 : getTastate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", taid=").append(taid);
        sb.append(", cid=").append(cid);
        sb.append(", enddate=").append(enddate);
        sb.append(", weighttarget=").append(weighttarget);
        sb.append(", tastate=").append(tastate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}